const http = require('http')
const url = require('url')

const server = http.createServer((request, response) => {
  // console.log(request.url)
  let res = url.parse(request.url, true)
  // console.log(res.pathname)
  console.log(res.query.keytword)
  response.end('url')
})

server.listen(9000, () => {
  console.log('服务已经启动了')
})
